import { Prop, Schema, SchemaFactory } from "@nestjs/mongoose";
import { Document,Schema as MongooseSchema } from "mongoose";
export type TypeDocument=Type & Document
@Schema()
export class Type {
    @Prop({required:true})
    type:string;
    @Prop({default:""})
    parentId:string;
}
export const TypeSchema=SchemaFactory.createForClass(Type)
